#pragma once
#include <iostream>
#include <string>
using namespace std;

class Room
{
private:
	double area;
	string type;

public:
	Room(double a, string t){area = a; type = t;}
	Room(void){area = 0; type = "Undefined";}
	~Room(void){}

	friend ostream& operator<<(ostream& o, const Room& Room)
	{
		o << "Area:" << Room.area << "  Type:" << Room.type << ' ' << endl;
		return o;
	}
	friend istream& operator>>(istream& i, Room& Room)
	{
		i >> Room.area;
		i >> Room.type;
		return i;
	}
	
	void Read()
	{
		cout << endl << "Area of room?:";
		cin >> area;
		cout << endl << "Type of room?:";
		cin >> type;
	}
	void Write()
	{
		cout << endl << "Area of room:" << area << " Type of room:" << type << ' ' << endl;
	}

	void set_area(double d) {area = d;}
	double get_area() {return area;}

	void set_type(string t) {type = t;}
	string get_type() {return type;}
};

